package com.example.ephuizi.stl.util;

/**
 * Created by ephuizi@gmail.com on 2016/1/8.
 */
public class STLToArrProgress {
    private int totalFacet = 0;
    private int nowFacet = 0;

    public STLToArrProgress() {
    }

    public int getTotalFacet() {
        return totalFacet;
    }

    public void setTotalFacet(int totalFacet) {
        this.totalFacet = totalFacet;
    }

    public int getNowFacet() {
        return nowFacet;
    }

    public void setNowFacet(int nowFacet) {
        this.nowFacet = nowFacet;
    }

    public int getProgress() {
        if (totalFacet > 0) {
            return nowFacet * 100 / totalFacet;
        }
        return 0;
    }

}